Read networks saved from other programs into bn.fit
objects, and dump
bn
and bn.fit
objects into files for other programs to read.
# Old (non-XML) Bayesian Interchange format.
read.bif(file, debug = FALSE)
write.bif(file, fitted)# Microsoft Interchange format.
read.dsc(file, debug = FALSE)
write.dsc(file, fitted)
# HUGIN flat network format.
read.net(file, debug = FALSE)
write.net(file, fitted)
# Graphviz DOT format.
write.dot(file, graph)
a connection object or a character string.
an object of class bn.fit
.
an object of class bn
or bn.fit
.
a boolean value. If TRUE
a lot of debugging output is
printed; otherwise the function is completely silent.
read.bif()
, read.dsc()
and read.net()
return an object of class
bn.fit
.
write.bif()
, write.dsc()
, write.net()
and write.dot()
return NULL
invisibly.
Bayesian Network Repository, https://www.bnlearn.com/bnrepository/.